<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ChartViewer.updateFullRangeH</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="ChartViewer.htm">ChartViewer</a>.<wbr>updateFullRangeH</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void updateFullRangeH(String id, {double | java.util.Date} minValue, {double | java.util.Date} maxValue, int updateType)
</div>
<p class="heading2">Description</p>
<div class="content">
Updates the full range of a horizontal viewport data scale.<br><br>
This method can be called to modify an existing full range (see <a href="ChartViewer.setFullRange.htm">ChartViewer.setFullRange</a>). When the full range is modified, there are several ways to update the viewport. This is best explain by using an example.<br><br>
Suppose in a real-time chart, the full range is 200 seconds, and the viewport is viewing the last 50% of the data. In viewport coordinates, it is viewing from 0.5 to 1.0 of the full range. In axis scale, it is viewing the last 100 seconds of data from time = 100 to 200. Suppose new data comes in and the full range is updated to 300 seconds. The viewport can be updated in the following ways:<br><br>
<ul>
<li>The viewport coordinates can remain unchanged, that is, it is still viewing 0.5 to 1.0 of the full range. In axis scale, it would become time = 150 to  300. This update type is represented by the constant <a href="Chart.ViewPortNoUpdate.htm">ViewPortNoUpdate</a>.<br><br>
<li>The viewport can be adjusted so that the axis scale remain unchanged from time = 100 to 200. In other words, the visible display will remain unchanged. This update type is represented by the constant <a href="Chart.KeepVisibleRange.htm">KeepVisibleRange</a>.<br><br>
<li>The viewport can be adjusted so that the it is still viewing the last 100 seconds of data, which would be time = 200 to 300. This update type is represented by the constant <a href="Chart.ScrollWithMax.htm">ScrollWithMax</a>, because as new data are added, the chart will appear to scroll to keep the latest data visible.<br><br>
<li>For completeness, there is an additional update type <a href="Chart.ScrollWithMin.htm">ScrollWithMin</a>, which will be useful if the new data is appended on the lower side of the full range.<br></ul>
Sometimes it is impossible to adjust viewport using the specified method. For example, for real-time charts, some systems will automatically remove old data to avoid unlimited data accumulation. The <a href="Chart.KeepVisibleRange.htm">KeepVisibleRange</a> can become impossible if the visible range was removed. In this case, ChartDirector will adjust the viewport to keep it within the valid range.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>id</td><td>(Mandatory)</td><td>The name of the horizontal data scale.</td></tr><tr><td>minValue</td><td>(Mandatory)</td><td>The new minimum value of the data scale.</td></tr><tr><td>maxValue</td><td>(Mandatory)</td><td>The new maximum value of the data scale.</td></tr><tr><td>updateType</td><td>(Mandatory)</td><td>The method to update the viewport. Must be one of <a href="Chart.ViewPortNoUpdate.htm">ViewPortNoUpdate</a>, <a href="Chart.KeepVisibleRange.htm">KeepVisibleRange</a>, <a href="Chart.ScrollWithMax.htm">ScrollWithMax</a> or <a href="Chart.ScrollWithMin.htm">ScrollWithMin</a>.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
